import request from '@/router/axios';

// 列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/interestedPartyMange/relatedpartyjudge/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 详情
export const getDetail = (id) => {
  return request({
    url: '/api/interestedPartyMange/relatedpartyjudge/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 修改
export const update = (row) => {
  return request({
    url: '/api/interestedPartyMange/relatedpartyjudge/update',
    method: 'post',
    data: row
  })
}

// 获取相关方评定内容列表
export const getJudgeItems = () => {
  return request({
    url: '/api/interestedPartyMange/relatedjudgeitem/list',
    method: 'get'
  })
}